<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <title>客户维修</title>
    <style>.selects{
        float: left;
        width: 100px;
        height: 30px;
        margin-right: 10px;
    }</style>
</head>
<body>
<nav class="breadcrumb">订单管理 <span class="c-gray en">&gt;</span> 订单查询 <span class="c-gray en">&gt;</span> 客户维修<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
  <form class="ml-20 mr-20" id="form-member-add">
    <div class="bg-1 bk-gray pd-20 mb-20">
      <div class="va-m lh-20 f-14 pb-15"><strong id="selectMaintain">选择维修商品</strong><a onclick="repairAll()"
                                                                   class="btn btn-secondary radius size-S ml-20">全部维修</a>
          <span style="float: right;">从当前数据中检索：<input type="text" oninput="retrievaldatas(this)" class="input-text radius jiansuo" style="width: 110px;"></span>
      </div>
      <div class="mb-50">
        <table class="table table-border table-bordered" id="datatable">
            <thead>
                <tr class="text-c">
                    <th style="width: 300px;">商品</th>
                    <th>发货仓</th>
                    <th>购买数量</th>
                    <th>出库数量</th>
                    <th>收货数量</th>
                    <th>可维修数量</th>
                    <th>维修数量</th>
                </tr>
            </thead>
            <tbody class="shun"></tbody>
        </table>
          <table class="table table-border table-bordered" id="datatableee">
              <thead>
              <tr class="text-c">
                  <th style="width: 300px;">商品</th>
                  <th>发货仓</th>
                  <th>购买数量</th>
                  <th>出库数量</th>
                  <th>收货数量</th>
                  <th>可维修数量</th>
                  <th>维修数量</th>
              </tr>
              </thead>
              <tbody class="shun"></tbody>
          </table>
      </div>
      <div class="clearfix">
      	<label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>维修原因：</label>
      	<span class="select-box size-M radius col-xs-8" style="width:40%">
      	<select class="select" name="maintainReason" id="maintainReason" size="1">
      	    <option value="10" selected>电机/主机不转、功率不够</option>
      	    <option value="20">机器劲小、钻不动孔</option>
      	    <option value="30">调速功能有问题</option>
      	    <option value="40">开关坏</option>
      	    <option value="50">电源问题</option>
      	    <option value="60">机器不发动</option>
      	    <option value="70">外机破损</option>
      	    <option value="80">商品质量问题</option>
      	</select>
        </span>
      </div>

      <div class="clearfix mt-20">
        <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>维修说明：</label>
        <div class="formControls col-sm-5 pl-10 f-l">
          <textarea name="returnRemark" class="textarea radius" id="returnRemark" placeholder="" datatype="*1-500" onKeyUp="value=value.replace(/\s+/g,'')"></textarea>

        </div>
          <span class="Validform_checktip"></span>
      </div>
      <div class="clearfix pt-20">
         <label class="form-label f-l pt-25">维修凭证：</label><br>
        <!--<div class="formControls f-l" >
            <div id="imgs" class="f-l"></div>
            &lt;!&ndash;<img title="" width="50" height="50" src="" id="myImg" class="mr-10">&ndash;&gt;
            <a onclick="addBtn()"><i class="Hui-iconfont f-22 mt-10" title="点击添加图片"></i></a>&nbsp;

            <input id="fileUp" type="file" onchange="putDataToPage(event,this)" style="display: none;"></div>-->
          <div class="ceshi">

          </div>
          <div class="pic_up_btn">
              <div class="pic_up" id="addPicBtn"><img title="" width="50" height="50" class="myImg" class="mr-10" onclick="addBtn(this)"></div>
              <input id="fileUp4" style="display: none">
              <input type="file" class="fileUp" id="filesUp" onchange="putDataToPage(event,this)" multiple style="display: none;">
              &nbsp;&nbsp;<!--<a id="addImgs" class="hide" onclick="getupfilerul()"><span>上传</span></a>-->
              &nbsp;&nbsp;<a id="deletBtn" onclick="deleteFiles()" class="hide"><span>删除</span></a>
          </div>
        <!--<span class="Validform_checktip"></span>  datatype="*" errormsg="格式错误，请重新输入" nullmsg="请填写信息"-->
      </div>
      <div class="clearfix pt-20">
            <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>送修方式：</label>
            <span class="select-box size-M radius col-xs-8" style="width:40%">
		        <select class="select" name="maintainType" id="maintainType" size="1" onchange="mainType(value)">
			        <option value="20" selected>厂家上门维修</option>
			        <option value="30" >鑫方盛售后上门维修</option>
                    <option value="10" >客户自行送维修点</option>
		        </select>
	        </span>
        </div>
      <div class="clearfix pt-20 hide" id="receiveAddress">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>收货地址：</label>
          <input type="text" class="input-text radius" style="width:30%" name="receiveGoodsAddress"
                 id="receiveGoodsAddress"  disabled>
      </div>
      <div class="clearfix pt-20" id="getAddress">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>取货地址：</label>
          <div class="formControls ">
              <div id="default_address" style="line-height: 2.3">
                  <span id="getGoodsAddress"></span>
                  <a onclick="modifyAddress(1)" id="modify">修改</a>
              </div>
              <div id="Choice_address" class="" style="display: none">
                  <select id="pin_list1" class="selects radius" size="1" onchange="queryAddress('pin_list1')">

                  </select>
                  <select id="pin_list2" class="selects radius" size="1"  onchange="queryAddress('pin_list2')">

                  </select>
                  <select id="pin_list3" class="selects radius" size="1" onchange="queryAddress('pin_list3')">

                  </select>
                  <select id="pin_list4" class="selects radius" size="1">

                  </select>
                  <label style="float: left; line-height: 2.5"><span class="c-red pr-5">*</span>详细地址：</label>
                  <input id="detailAddress" style="width: 200px;" class="selects input-text radius">
                  <a style="line-height: 2.5" onclick="modifyAddress(2)" >取消</a>
                  <a style="line-height: 2.5; margin-left: 10px" onclick="modifyAddress(3)" >保存</a>
              </div>
              <span class="Validform_checktip"></span>
          </div>
      </div>
      <div class="clearfix pt-20">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>联系人：</label>
          <div class="formControls col-xs-2">
            	<input type="text" class="input-text radius" name="received_name" id= "received_name" datatype="s"
                       errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')" placeholder="输入联系人">
          </div>
          <span class="Validform_checktip"></span>
      </div>
      <div class="clearfix pt-20">
          <label class="form-label f-l pt-5"><span class="c-red pr-5">*</span>联系人电话号：</label>
          <div class="formControls col-xs-2">
            	<input type="text" class="input-text radius" name="received_telephone" id= "received_telephone"
                       placeholder="输入电话号" datatype="/^[0-9-]{0,20}$/ | /^[0-9]{0,20}$/" errormsg="输入格式不正确" onKeyUp="value=value.replace(/\s+/g,'')">
          </div>
          <span class="Validform_checktip"></span>
      </div>
      <div class="text-c mb-10 mt-30">
        <input name="" type="button" onclick="cancle()" class="btn radius size-M botter mr-20"
               value="&nbsp;取&nbsp;&nbsp;消&nbsp;">
        <input id="bottm" type="submit" class="btn btn-secondary radius size-M botter "
               value="&nbsp;提&nbsp;&nbsp;交&nbsp;">
      </div>

    </div>
  </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<!--<script src="../../../ht-js/Project.js?rev=@@hash"></script>-->
<script src="../../../ht-js/order/maintainGoods.js?rev=@@hash"></script>
</body>
<script>
    $(function(){
        $("#Choice_address").hide()
        // discountdata(123);
        // setTimeout( function () {
        //     discountdata(1)
        // },100);
        // setTimeout( function () {
        //     discountdata(2)
        // },200);
        // setTimeout( function () {
        //     discountdata(3)
        // },300);
        $("#form-member-add").Validform({
            tiptype:2,
            callback:function(form){
                repairSubmit()
                return false;
            }
        });})
</script>
</html>